package com.gupaoedu.design.prototype.simple;

/**
 * <p></p>
 *
 * @author Andy
 * @date 2018/3/9.
 */
public class Prototype implements Cloneable{

    private String name;

    private SubPrototype target ;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public SubPrototype getTarget() {
        return target;
    }

    public void setTarget(SubPrototype target) {
        this.target = target;
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }

    @Override
    public String toString() {
        return "Prototype{" +
                "name='" + name +
                '}';
    }
}
